#include <bits/stdc++.h>
using namespace std;
const int maxn=1e5+10;
int main()
{
	int n;
	cin >> n;
	long double a[maxn];
	for(int i=1;i<=n;i++)
	{
		cin >> a[i];
	}
	for(int i=1;i<=n;i++)
	{
		cout << a[i] << " ";
	}
	cout << endl;
	for(int c=1;c<=200;c++)
	{
		for(int i=1;i<=n-1;i++)
	    {
		    a[i+1]=a[i+1]+a[i]/2;
		    a[i]=a[i]/2;
	    }
	    a[1]=a[1]+a[n]/2;
	    a[n]=a[n]/2;
	    for(int i=1;i<=n;i++)
	    {
		    cout << a[i] << " ";
	    }
	    cout << endl;
	}
	return 0;
}
